package com.system.entity;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 教师角色关联表
 * </p>
 *
 * @author zfc
 * @since 2023-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TeacherRole对象", description="教师角色关联表")
public class TeacherRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教师表（教师表ID）")
    @NotNull(message = "教师编号不能为空")
    private Integer teacherId;

    @ApiModelProperty(value = "角色表（角色表ID）")
    @NotNull(message = "角色编号不能为空")
    private Integer roleId;


}
